import matplotlib.pyplot as plt

plt.rcParams['font.sans-serif']=['SimHei']  #设置绘图支持中文显示

labels = ['道路交通','高坠','安全用电','未戴防护用品']

data = [50,100,60,180]

plt.pie(data,labels=labels,autopct='%.1f%%')
plt.show()
